﻿@model MSAcademic.v2.Web.Areas.Admin.Models.User.UserUpdateViewModel
@{
    ViewBag.Title = "Uredi podatke o sebi";
}

<script src="~/Scripts/ckeditor/ckeditor.js"></script>
<script type="text/javascript">
    $(function () { CKEDITOR.replace('Description',    { height: 500   }); });
</script>

<h2>Uredi podatke o sebi</h2>

<div class="updateProfile">
    @using (Html.BeginForm())
    {

        @Html.HiddenFor(m => m.Id)
        @Html.AntiForgeryToken()
        if (!string.IsNullOrWhiteSpace(Model.ErrorMessage))
        {
        @Model.ErrorMessage
        }   
   
        <div>
            @Html.TextBoxFor(m => m.Username, new { @placeholder = "Korisničko ime"})
        </div>
        <div>
            @Html.TextBoxFor(m => m.Email, new { @placeholder = "Vaša e-mail adresa" })
        </div>
        <div>
            @Html.PasswordFor(m => m.Password, new { @placeholder = "Vaša lozinka (duža od 4 znaka)"})
        </div>
        <div>
            @Html.PasswordFor(m => m.ConfirmPassword, new { @placeholder = "Ponovljena lozinka"})
        </div>
        
        <h3>Osobne informacije</h3>
        <div>
            @Html.TextBoxFor(m => m.FirstName, new { @placeholder = "Vaše ime"})
        </div>
        <div>
            @Html.TextBoxFor(m => m.LastName, new { @placeholder = "Vaše prezime"})
        </div>
        <div>
            <br /> <br /> <br />
            @Html.TextAreaFor(m => m.Description, new { @placeholder = "Recite nešto o sebi" })
        </div>
    
        <h3>Linkovi</h3>
        <div>
            @Html.TextBoxFor(m => m.FacebookLink, new {  @placeholder = "Link na vaš Facebook profil" })
        </div>
        <div>
            @Html.TextBoxFor(m => m.TwitterLink, new {  @placeholder = "Link na vaš Twitter profil" })
        </div>
        <div>
            @Html.TextBoxFor(m => m.LinkedInLink, new {  @placeholder = "Link na vaš LinkedIn profil" })
        </div>
        <div>
            @Html.TextBoxFor(m => m.OtherLink, new {  @placeholder = "Link na bilo što drugo na bespućima interneta" })
        </div>
    
        <div class="actions-wrapper clearfix">
            <a href="@Url.RouteUrl("AdminHome")" class="cancel">Odustani</a> 
            <a class="positive submit">Spremi promjene profil <i class="icon-ok"></i></a>
        </div>
    }
</div>

